(function() {

this.codium = this.codium || {};
this.codium.pdunsri = this.codium.pdunsri || {};

this.codium.CodiumService = pasta.service.RemoteObject.extend(
{
	init : function() 
	{
		this._super("service/Codium.php");
	},
	
	login : function(userId, pass, callback)
	{
		this.call("login", userId, pass, callback);
	},
	
	addMessage : function(projectId, userId, title, msg, callback)
	{
		this.call("addMessage", projectId, userId, title, msg, callback);
	},
	
	listMessage : function(projectId, callback)
	{
		this.call("listMessage", projectId, callback);
	},
	
	addTicket : function(projectId, userId, title, msg, assignee, piority, duedate, callback)
	{
		this.call("addTicket", projectId, userId, title, msg, assignee, piority, duedate, callback);
	},
	
	ticketChangeState : function(ticketId, newState, msg, callback)
	{
		this.call("ticketChangeState", ticketId, newState, msg, callback);
	},
	
	listTicket : function(projectId, callback)
	{
		this.call("listTicket", projectId, callback);
	},
	
	listTicketAttachment : function(ticketId, callback)
	{
		this.call("listTicketAttachment", ticketId, callback);
	},
	
	listPeople : function(projectId, callback)
	{
		this.call("listPeople", projectId, callback);
	},
	
	listFile : function(projectId, callback)
	{
		this.call("listFile", projectId, callback);
	},
	
	addUser : function(userId, userName, pass, email, role, callback)
	{
		this.call("addUser", userId, userName, pass, email, role, callback);
	},
	
	updateUser : function(userId, userName, pass, email, role, callback)
	{
		this.call("updateUser", userId, userName, pass, email, role, callback);
	},
	
	delUser : function(userId, callback)
	{
		this.call("delUser", userId, callback);
	},
	
	listUser : function(callback)
	{
		this.call("listUser", callback);
	},
	
	//------------- Event Object -----------
});

})();